300
Can I add any break or divider line

with thisform.List1
	.ScrollBySingleLine = .F.
	.Columns.Add("Default")
	with .Items
		.Add("Item 1")
		h = .Add()
		.ItemBreak(h) = 1
		.SelectableItem(h) = .F.
		.ItemHeight(h) = 6
		.Add("Item 3")
	endwith
endwith
299
Can I change the default border of the tooltip, using your EBN files

with thisform.List1
	.ToolTipDelay = 1
	.ToolTipWidth = 364
	.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
	.Object.Background(64) = 0x1000000
	.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
endwith
298
Can I change the background color for the tooltip

with thisform.List1
	.ToolTipDelay = 1
	.ToolTipWidth = 364
	.Object.Background(65) = RGB(255,0,0)
	.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
endwith
297
Does the tooltip support HTML format

with thisform.List1
	.ToolTipDelay = 1
	.ToolTipWidth = 364
	.Columns.Add("tootip").ToolTip = "<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>"
endwith
296
Can I change the forecolor for the tooltip

with thisform.List1
	.ToolTipDelay = 1
	.ToolTipWidth = 364
	.Object.Background(66) = RGB(255,0,0)
	.Columns.Add("tootip").ToolTip = "this is a tooltip assigned to a column"
endwith
295
Can I change the foreground color for the tooltip

with thisform.List1
	.ToolTipDelay = 1
	.ToolTipWidth = 364
	.Columns.Add("tootip").ToolTip = "<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>"
endwith
294
Is there any function to limit the height of the items when I display it using multiple lines

with thisform.List1
	.ScrollBySingleLine = .T.
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."
		.CellSingleLine(h,1) = .F.
		.ItemMaxHeight(h) = 48
	endwith
endwith
293
Why I cannot center my cells in the column

with thisform.List1
	.DrawGridLines = -1
	.Columns.Add("Default").Alignment = 1
	.Items.Add("item 1")
	.Items.Add("item 2")
	.Items.Add("item 3")
endwith
292
How can I align the cell to the left, center or to the right

with thisform.List1
	.DrawGridLines = -1
	.Columns.Add("Default")
	with .Items
		.CellHAlignment(.Add("left"),0) = 0
		.CellHAlignment(.Add("center"),0) = 1
		.CellHAlignment(.Add("right"),0) = 2
	endwith
endwith
291
How do I apply HTML format to a cell

with thisform.List1
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
	.Images(var_s)
	.Object.HTMLPicture("p1") = "c:\exontrol\images\zipdisk.gif"
	.Object.HTMLPicture("p2") = "c:\exontrol\images\auction.gif"
	.Columns.Add("Default")
	with .Items
		h = .Add("The following item shows some of the HTML format supported:")
		.CellHAlignment(h,0) = 1
		var_s1 = "<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <u"
		var_s1 = var_s1 + ">underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolor"
		var_s1 = var_s1 + "</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> "
		h = .Add(var_s1)
		.CaptionFormat(h,0) = 1
		.CellSingleLine(h,0) = .F.
	endwith
endwith
290
How can I change the font for a cell

with thisform.List1
	.Columns.Add("Default")
	.Items.Add("std font")
	with .Items
		.CaptionFormat(.Add("this <font tahoma;12>is a bit of text with</font> a different font"),0) = 1
	endwith
endwith
289
How can I change the font for a cell

with thisform.List1
	.Columns.Add("Default")
	.Items.Add("default font")
	f = CreateObject("StdFont")
	with f
		.Name = "Tahoma"
		.Size = 12
	endwith
	with .Items
		.CellFont(.Add("new font"),0) = f
	endwith
endwith
288
How can I change the font for entire item

with thisform.List1
	.Columns.Add("Default")
	.Items.Add("default font")
	f = CreateObject("StdFont")
	with f
		.Name = "Tahoma"
		.Size = 12
	endwith
	with .Items
		.ItemFont(.Add("new font")) = f
	endwith
endwith
287
How do I vertically align a cell

with thisform.List1
	.DrawGridLines = -1
	.Columns.Add("MultipleLine").Def(16) = .F.
	.Columns.Add("VAlign")
	with .Items
		h = .Add("This is a bit of long text that should break the line")
		.Caption(h,1) = "top"
		.CellVAlignment(h,1) = 0
		h = .Add("This is a bit of long text that should break the line")
		.Caption(h,1) = "middle"
		.CellVAlignment(h,1) = 1
		h = .Add("This is a bit of long text that should break the line")
		.Caption(h,1) = "bottom"
		.CellVAlignment(h,1) = 2
	endwith
endwith
286
How can I change the position of an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.Add("Item 1")
		.Add("Item 2")
		.ItemPosition(.Add("Item 3")) = 0
	endwith
endwith
285
How do I find an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.ItemBold(.FindItem("Item 2",0)) = .T.
	endwith
endwith
284
How can I insert a hyperlink or an anchor element

with thisform.List1
	.Columns.Add("Column")
	with .Items
		.CaptionFormat(.Add("Just an <a1>anchor</a> element ..."),0) = 1
	endwith
	with .Items
		.CaptionFormat(.Add("Just another <a2>anchor</a> element ..."),0) = 1
	endwith
endwith
283
How do I find the handle of the item based on its index

with thisform.List1
	.Columns.Add("Default")
	with .Items
		h = .Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.ItemBold(1) = .T.
	endwith
endwith
282
How can I find the cell being clicked in a radio group

with thisform.List1
	.MarkSearchColumn = .F.
	.SelBackColor = RGB(255,255,128)
	.SelForeColor = RGB(0,0,0)
	.Columns.Add("C1")
	.Columns.Add("C2")
	.Columns.Add("C3")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Radio 1"
		.CellHasRadioButton(h,1) = .T.
		.CellRadioGroup(h,1) = 1234
		.Caption(h,2) = "Radio 2"
		.CellHasRadioButton(h,2) = .T.
		.CellRadioGroup(h,2) = 1234
		.CellState(h,1) = 1
		.CellChecked(1234,i,c)
		.CellBold(i,c) = .T.
	endwith
endwith
281
Can I let the user to resize at runtime the specified item

with thisform.List1
	.ScrollBySingleLine = .T.
	.DrawGridLines = -1
	.Columns.Add("Default")
	with .Items
		.ItemAllowSizing(.Add("resizable item")) = .T.
		.Add("not resizable item")
	endwith
endwith
280
How can I change the size ( width, height ) of the picture

with thisform.List1
	.Columns.Add("Default")
	with .Items
		h = .Add("Item 1")
		.CellPicture(h,0) = thisform.List1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
		.CellPictureWidth(h,0) = 24
		.CellPictureHeight(h,0) = 24
		.ItemHeight(h) = 32
		h = .Add("Item 2")
		.CellPicture(h,0) = thisform.List1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
		.ItemHeight(h) = 48
	endwith
endwith
279
How can I find the number or the count of selected items

with thisform.List1
	.SingleSel = .F.
	.Columns.Add("Default")
	with .Items
		h = .Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.SelectItem(.FirstVisibleItem) = .T.
		.SelectItem(.NextVisibleItem(.FirstVisibleItem)) = .T.
		.Add(.SelectCount)
	endwith
endwith
278
How do I unselect an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		h = .Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.SelectItem(h) = .F.
	endwith
endwith
277
How do I find the selected item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		h = .Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.SelectItem(h) = .T.
		.ItemBold(.SelectedItem(0)) = .T.
	endwith
endwith
276
How do I un select all items

with thisform.List1
	.SingleSel = .F.
	.Columns.Add("Default")
	with .Items
		.Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.UnselectAll
	endwith
endwith
275
How do I select multiple items

with thisform.List1
	.SingleSel = .F.
	.Columns.Add("Default")
	with .Items
		.Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.SelectItem(.FirstVisibleItem) = .T.
		.SelectItem(.NextVisibleItem(.FirstVisibleItem)) = .T.
	endwith
endwith
274
How do I select all items

with thisform.List1
	.SingleSel = .F.
	.Columns.Add("Default")
	with .Items
		.Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.SelectAll
	endwith
endwith
273
How do I select an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.SelectItem(.NextVisibleItem(.FocusItem)) = .T.
	endwith
endwith
272
Can I display a button with some picture or icon inside

with thisform.List1
	.Object.HTMLPicture("p1") = "c:\exontrol\images\zipdisk.gif"
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = " Button <img>p1</img> "
		.CaptionFormat(h,1) = 1
		.CellHAlignment(h,1) = 2
		.CellHasButton(h,1) = .T.
		.ItemHeight(h) = 48
	endwith
endwith
271
Can I display a button with some picture or icon inside

with thisform.List1
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
	.Images(var_s)
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = " Button <img>1</img> "
		.CaptionFormat(h,1) = 1
		.CellHAlignment(h,1) = 2
		.CellHasButton(h,1) = .T.
	endwith
endwith
270
Can I display a button with some icon inside

with thisform.List1
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
	.Images(var_s)
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = " <img>1</img> "
		.CaptionFormat(h,1) = 1
		.CellHAlignment(h,1) = 2
		.CellHasButton(h,1) = .T.
	endwith
endwith
269
How can I assign multiple icon/picture to a cell

with thisform.List1
	.Object.HTMLPicture("p1") = "c:\exontrol\images\zipdisk.gif"
	.Object.HTMLPicture("p2") = "c:\exontrol\images\auction.gif"
	.Columns.Add("Default")
	with .Items
		h = .Add("text <img>p1</img> another picture <img>p2</img> and so on")
		.CaptionFormat(h,0) = 1
		.CellPicture(h,0) = thisform.List1.ExecuteTemplate("loadpicture(`c:\exontrol\images\colorize.gif`)")
		.ItemHeight(h) = 48
		.Add("Item 2")
	endwith
endwith
268
How can I assign an icon/picture to a cell

with thisform.List1
	.Columns.Add("Default")
	with .Items
		h = .Add("Item 1")
		.CellPicture(h,0) = thisform.List1.ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)")
		.ItemHeight(h) = 48
		.Add("Item 2")
	endwith
endwith
267
How can I assign multiple icons/pictures to a cell

with thisform.List1
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
	.Images(var_s)
	.Columns.Add("Default")
	with .Items
		h = .Add("Item <img>1</img> 1, <img>2</img>, ... and so on ")
		.CaptionFormat(h,0) = 1
	endwith
endwith
266
How can I assign multiple icons/pictures to a cell

with thisform.List1
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
	.Images(var_s)
	.Columns.Add("Default")
	with .Items
		h = .Add("Item 1")
		.CellImages(h,0) = "1,2,3"
	endwith
endwith
265
How can I assign an icon/picture to a cell

with thisform.List1
	var_s = "gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql"
	var_s = var_s + "Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0"
	var_s = var_s + "ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN"
	var_s = var_s + "AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="
	.Images(var_s)
	.Columns.Add("Default")
	with .Items
		h = .Add("Item 1")
		.CellImage(h,0) = 1
		.CellImage(.Add("Item 2"),0) = 2
		.CellImage(.Add("Item 3"),0) = 3
	endwith
endwith
264
How can I display a button inside the item or cell

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = " Button 1 "
		.CellHAlignment(h,1) = 2
		.CellHasButton(h,1) = .T.
		h = .Add("Cell 2")
		.Caption(h,1) = " Button 2 "
		.CellHAlignment(h,1) = 1
		.CellHasButton(h,1) = .T.
	endwith
endwith
263
How can I change the state of a radio button

with thisform.List1
	.MarkSearchColumn = .F.
	.SelBackColor = RGB(255,255,128)
	.SelForeColor = RGB(0,0,0)
	.Columns.Add("C1")
	.Columns.Add("C2")
	.Columns.Add("C3")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Radio 1"
		.CellHasRadioButton(h,1) = .T.
		.CellRadioGroup(h,1) = 1234
		.Caption(h,2) = "Radio 2"
		.CellHasRadioButton(h,2) = .T.
		.CellRadioGroup(h,2) = 1234
		.CellState(h,1) = 1
	endwith
endwith
262
How can I assign a radio button to a cell

with thisform.List1
	.MarkSearchColumn = .F.
	.SelBackColor = RGB(255,255,128)
	.SelForeColor = RGB(0,0,0)
	.Columns.Add("C1")
	.Columns.Add("C2")
	.Columns.Add("C3")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Radio 1"
		.CellHasRadioButton(h,1) = .T.
		.CellRadioGroup(h,1) = 1234
		.Caption(h,2) = "Radio 2"
		.CellHasRadioButton(h,2) = .T.
		.CellRadioGroup(h,2) = 1234
		.CellState(h,1) = 1
	endwith
endwith
261
How can I change the state of a checkbox

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Check Box"
		.CellHasCheckBox(h,1) = .T.
		.CellState(h,1) = 1
	endwith
endwith
260
How can I assign a checkbox to a cell

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Check Box"
		.CellHasCheckBox(h,1) = .T.
	endwith
endwith
259
How can I display an item or a cell on multiple lines

with thisform.List1
	.ScrollBySingleLine = .T.
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "This is bit of text that's shown on multiple lines"
		.CellSingleLine(h,1) = .F.
	endwith
endwith
258
How can I assign a tooltip to a cell

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "tooltip"
		.CellToolTip(h,1) = "This is bit of text that's shown when the user hovers the cell"
	endwith
endwith
257
How can I associate an extra data to a cell

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Cell 2"
		.CellData(h,1) = "your extra data"
	endwith
endwith
256
How do I enable or disable a cell

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Cell 2"
		.CellEnabled(h,1) = .F.
	endwith
endwith
255
How do I change the cell's foreground color

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Cell 2"
		.CellForeColor(h,1) = RGB(255,0,0)
	endwith
endwith
254
How do I change the visual effect for the cell, using your EBN files

with thisform.List1
	.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Cell 2"
		.CellBackColor(h,1) = 0x1000000
	endwith
endwith
253
How do I change the cell's background color

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		h = .Add("Cell 1")
		.Caption(h,1) = "Cell 2"
		.CellBackColor(h,1) = RGB(255,0,0)
	endwith
endwith
252
How do I change the caption or value for a particular cell

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		.Caption(.Add("Cell 1"),1) = "Cell 2"
	endwith
endwith
251
How do I retrieve the focused item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.Add("Item 1")
		.Add("Item 2")
		.Add("Item 3")
		.ItemBold(.FocusItem) = .T.
	endwith
endwith
250
How do I enumerate the visible items

with thisform.List1
	.Columns.Add("Default")
	with .Items
		h = .Add("Item 1")
		h = .Add("Item 2")
		.ItemBold(.FirstVisibleItem) = .T.
		.ItemBold(.NextVisibleItem(.FirstVisibleItem)) = .T.
	endwith
endwith
249
How can I make an item unselectable, or not selectable

with thisform.List1
	.Columns.Add("Column")
	with .Items
		h = .Add("unselectable - you can't get selected")
		.SelectableItem(h) = .F.
		.Add("selectable")
	endwith
endwith
248
How can I hide or show an item

with thisform.List1
	.Columns.Add("Column")
	with .Items
		h = .Add("hidden")
		.ItemHeight(h) = 0
		.SelectableItem(h) = .F.
		.Add("visible")
	endwith
endwith
247
How can I change the height for all items

with thisform.List1
	.DefaultItemHeight = 32
	.Columns.Add("Column")
	.Items.Add("One")
	.Items.Add("Two")
endwith
246
How do I change the height of an item

with thisform.List1
	.ScrollBySingleLine = .T.
	.Columns.Add("Default")
	with .Items
		.ItemHeight(.Add("height")) = 128
	endwith
	.Items.Add("enabled")
endwith
245
How do I disable or enable an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.EnableItem(.Add("disabled")) = .F.
	endwith
	.Items.Add("enabled")
endwith
244
How do I display as strikeout a cell

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.CellStrikeOut(.Add("strikeout"),0) = .T.
	endwith
endwith
243
How do I display as strikeout a cell or an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.CaptionFormat(.Add("gets <s>strikeout</s> only a portion of text"),0) = 1
	endwith
endwith
242
How do I display as strikeout an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.ItemStrikeOut(.Add("strikeout")) = .T.
	endwith
endwith
241
How do I underline a cell

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.CellUnderline(.Add("underline"),0) = .T.
	endwith
endwith
240
How do I underline a cell or an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.CaptionFormat(.Add("gets <u>underline</u> only a portion of text"),0) = 1
	endwith
endwith
239
How do I underline an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.ItemUnderline(.Add("underline")) = .T.
	endwith
endwith
238
How do I display as italic a cell

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.CellItalic(.Add("italic"),0) = .T.
	endwith
endwith
237
How do I display as italic a cell or an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.CaptionFormat(.Add("gets <i>italic</i> only a portion of text"),0) = 1
	endwith
endwith
236
How do I display as italic an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.ItemItalic(.Add("italic")) = .T.
	endwith
endwith
235
How do I bold a cell

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.CellBold(.Add("bold"),0) = .T.
	endwith
endwith
234
How do I bold a cell or an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.CaptionFormat(.Add("gets <b>bold</b> only a portion of text"),0) = 1
	endwith
endwith
233
How do I bold an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.ItemBold(.Add("bold")) = .T.
	endwith
endwith
232
How do I change the foreground color for the item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.ItemForeColor(.Add("Item")) = RGB(255,0,0)
	endwith
endwith
231
How do I change the visual appearance for the item, using your EBN technology

with thisform.List1
	.VisualAppearance.Add(1,"c:\exontrol\images\normal.ebn")
	.Columns.Add("Default")
	with .Items
		.ItemBackColor(.Add("Item")) = 0x1000000
	endwith
endwith
230
How do I change the background color for the item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.ItemBackColor(.Add("Item")) = RGB(255,0,0)
	endwith
endwith
229
How do I associate an extra data to an item

with thisform.List1
	.Columns.Add("Default")
	with .Items
		.ItemData(.Add("item")) = "your extra data"
	endwith
endwith
228
How do I programmatically edit a cell

*** AfterCellEdit event - Occurs after data in the current cell is edited. ***
LPARAMETERS ItemIndex,ColIndex,NewCaption
	with thisform.List1
		with .Items
			.Caption(ItemIndex,ColIndex) = NewCaption
		endwith
	endwith

*** CancelCellEdit event - Occurs if the edit operation is canceled. ***
LPARAMETERS ItemIndex,ColIndex,Reserved
	with thisform.List1
		with .Items
			.Caption(ItemIndex,ColIndex) = Reserved
		endwith
	endwith

*** Click event - Occurs when the user presses and then releases the left mouse button over the list control. ***
LPARAMETERS nop
	with thisform.List1
		with .Items
			.Edit(.FocusItem,0)
		endwith
	endwith

with thisform.List1
	.AllowEdit = .T.
	.Columns.Add("Default")
	with .Items
		.Add("")
	endwith
endwith
227
How can I ensure or scroll the control so the item fits the control's client area

with thisform.List1
	.Columns.Add("Default")
	h = .Items.Add("item")
	.Items.EnsureVisibleItem(h)
endwith
226
How can I remove or delete all items
with thisform.List1
	.Columns.Add("Default")
	.Items.Add("removed item")
	.Items.RemoveAll
endwith
225
How can I remove or delete an item
with thisform.List1
	.Columns.Add("Default")
	h = .Items.Add("removed item")
	.Items.Remove(h)
endwith
224
How can I add or insert an item

with thisform.List1
	.Columns.Add("C1")
	.Columns.Add("C2")
	with .Items
		.Caption(.Add("Cell 1"),1) = "Cell 2"
		h = .Add("Cell 3")
		.Caption(h,1) = "Cell 4"
	endwith
endwith
223
How can I add or insert an item

with thisform.List1
	.Columns.Add("Default")
	.Items.Add("new item")
endwith
222
How can I get the columns as they are shown in the control's sortbar
with thisform.List1
	var_Object = .Columns.ItemBySortPosition(0)
endwith
221
How can I access the properties of a column

with thisform.List1
	.Columns.Add("A")
	.Columns.Item("A").HeaderBold = .T.
endwith
220
How can I remove all the columns
with thisform.List1
	.Columns.Clear
endwith
219
How can I remove a column
with thisform.List1
	.Columns.Remove("A")
endwith
218
How can I get the number or the count of columns
with thisform.List1
	var_Count = .Columns.Count
endwith
217
How can I change the font for all cells in the entire column

with thisform.List1
	f = CreateObject("StdFont")
	with f
		.Name = "Tahoma"
		.Size = 12
	endwith
	with .ConditionalFormats.Add("1")
		.Font = f
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.Add(0)
	.Items.Add(1)
endwith
216
How can I change the background color for all cells in the column

with thisform.List1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.BackColor = RGB(255,0,0)
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.Add(0)
	.Items.Add(1)
endwith
215
How can I change the foreground color for all cells in the column

with thisform.List1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.ForeColor = RGB(255,0,0)
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.Add(0)
	.Items.Add(1)
endwith
214
How can I show as strikeout all cells in the column

with thisform.List1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.StrikeOut = .T.
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.Add(0)
	.Items.Add(1)
endwith
213
How can I underline all cells in the column

with thisform.List1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.Underline = .T.
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.Add(0)
	.Items.Add(1)
endwith
212
How can I show in italic all data in the column

with thisform.List1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.Italic = .T.
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.Add(0)
	.Items.Add(1)
endwith
211
How can I bold the entire column

with thisform.List1
	var_ConditionalFormat = .ConditionalFormats.Add("1")
	with var_ConditionalFormat
		.Bold = .T.
		.ApplyTo = 0
	endwith
	.Columns.Add("Column")
	.Items.Add(0)
	.Items.Add(1)
endwith
210
How can I display a computed column and highlight some values that are negative or less than a value

with thisform.List1
	.Columns.Add("A")
	.Columns.Add("B")
	.Columns.Add("(A+B)*1.19").ComputedField = "(%0 + %1) * 1.19"
	with .Items
		.Caption(.Add(1),1) = 2
	endwith
	with .Items
		.Caption(.Add(10),1) = 20
	endwith
	var_ConditionalFormat = .ConditionalFormats.Add("%2 > 10")
	with var_ConditionalFormat
		.Bold = .T.
		.ForeColor = RGB(255,0,0)
		.ApplyTo = 2 && 0x2
	endwith
endwith
209
Can I display a computed column so it displays the VAT, or SUM

with thisform.List1
	.Columns.Add("A")
	.Columns.Add("B")
	.Columns.Add("(A+B)*1.19").ComputedField = "(%0 + %1) * 1.19"
	with .Items
		.Caption(.Add(1),1) = 2
	endwith
	with .Items
		.Caption(.Add(10),1) = 20
	endwith
endwith
208
How can I show a column that adds values in the cells

with thisform.List1
	.Columns.Add("A")
	.Columns.Add("B")
	.Columns.Add("A+B").ComputedField = "%0 + %1"
	with .Items
		.Caption(.Add(1),1) = 2
	endwith
	with .Items
		.Caption(.Add(10),1) = 20
	endwith
endwith
207
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters

with thisform.List1
	var_Column = .Columns.Add("Filter")
	with var_Column
		.FilterOnType = .T.
		.DisplayFilterButton = .T.
		.AutoSearch = 1
	endwith
	.Items.Add("Canada")
	.Items.Add("USA")
endwith
206
Is there any function to filter the control's data as I type, something like filter on type

with thisform.List1
	var_Column = .Columns.Add("Filter")
	with var_Column
		.FilterOnType = .T.
		.DisplayFilterButton = .T.
	endwith
	.Items.Add("Canada")
	.Items.Add("USA")
endwith
205
How can I programmatically filter a column

with thisform.List1
	with .Columns.Add("Filter")
		.DisplayFilterButton = .T.
		.FilterType = 2
	endwith
	.Items.Add()
	.Items.Add("not empty")
	.ApplyFilter
endwith
204
How can I show or display the control's filter

with thisform.List1
	.Columns.Add("Filter").DisplayFilterButton = .T.
endwith
203
How can I customize the items being displayed in the drop down filter window

with thisform.List1
	with .Columns.Add("Custom Filter")
		.DisplayFilterButton = .T.
		.DisplayFilterPattern = .F.
		var_s = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.t"
		var_s = var_s + "xt|*.log"
		.CustomFilter = var_s
		.FilterType = 3
		.Filter = "*.xls"
	endwith
	.Items.Add("excel.xls")
	.Items.Add("word.doc")
	.Items.Add("pp.pps")
	.Items.Add("text.txt")
	.ApplyFilter
endwith
202
How can I change the order or the position of the columns in the sort bar

with thisform.List1
	.SortBarVisible = .T.
	.SortBarColumnWidth = 48
	.Columns.Add("C1").SortOrder = 1
	.Columns.Add("C2").SortOrder = 2
	.Columns.Item("C2").SortPosition = 0
endwith
201
How do I arrange my columns on multiple levels

with thisform.List1
	.Columns.Add("S").Width = 32
	.Columns.Add("Level 2").LevelKey = 1
	.Columns.Add("Level 3").LevelKey = 1
	.Columns.Add("Level 4").LevelKey = 1
	.Columns.Add("Level 1").LevelKey = "2"
	.Columns.Add("Level 2").LevelKey = "2"
	.Columns.Add("Level 3").LevelKey = "2"
	.Columns.Add("Level 4").LevelKey = "2"
	.Columns.Add("E").Width = 32
endwith